<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button id="btn">提交</button>
    <script>
      const btn = document.getElementById("btn");
      btn.eventDblClick=[]
      btn.eventMouseover=[]
      // 事件处理函数队列（数组）
      // eventClick[1]
      btn.eventClick = [
        function () {
          console.log(1);
        },
        function () {
          console.log(2);
        },
      ];
      btn.addEventListener(
        "click",
        function () {
          console.log(1);
        },
        { once: true }
      );
      btn.addEventListener(
        "click",
        function () {
          console.log(2);
        },
        { once: true }
      );

      setTimeout(() => {
        btn.removeEventListener('click')
      }, 3000);
    </script>
  </body>
</html>
